package com.mq.feign;

import com.common.entity.GlobalMsg;
import com.common.entity.Rsp;
import com.common.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "user",fallback = UserFeignFallBack.class)
public interface UserFeign {

    @PostMapping("/addOneMsg")
    Rsp addOneMsg(@RequestBody GlobalMsg globalMsg);

}
